<?php
	require('includes/connect.php');

	$fname = $_POST['fname'];
	$lname = $_POST['lname'];
	$emailID = $_POST['emailID'];
	$password = $_POST['password'];
	$repassword = $_POST['repassword'];
	$bday = $_POST['dd']."-".$_POST['mm']."-".$_POST['yy'];
	$gender = $_POST['gender'];
	$location = $_POST['location'];
	$ranNo = $_POST['uniqueID'];
	$active = 'N';

		$register = mysql_query("insert into users (`fname`, `lname`, `email_id`, `password`, `birthdate`, `gender`, `unique_id`, `location`, `active`) values ('$fname', '$lname', '$emailID', '$password', '$bday', '$gender', '$ranNo', '$location','$active')");

	header("location:register.php");
?>